# backend/Dockerfile

FROM python:3.8

ENV PYTHONUNBUFFERED 1

WORKDIR /code

COPY requirements.txt /code/
RUN pip install --no-cache-dir -r requirements.txt

COPY . /code/

# uwsgi will run on port 8000
EXPOSE 8000

# Use uwsgi to serve the application
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
#CMD ["python", "manage.py", "runserver_plus","0.0.0.0:8000","--cert", "1_yianxing.com.cn_bundle.crt","--key","2_yianxing.com.cn.key"]
#CMD ["python", "manage.py", "runserver_plus","0.0.0.0:8000","--cert", "cert.crt","--key","cert.key"]
